<?php
/**
 * Notes:
 * Created by PhpStorm.
 * Author: TS
 * Date: 2019/10/12
 * Time: 10:28
 */

namespace app\validate;


use think\Validate;

class ChatValidate extends Validate
{
    protected $rule = [
        'chat_content' => 'require',
        'user_id' => 'require|number',
    ];
    protected $field = [
        'user_id' => '用户标识',
        'chat_content' => '消息内容',
        'chat_status' => '消息类型',
        'chat_target' => '接受对象',
        'chat_mod' => '发送方式'
    ];

    protected $scene = [
        'sendGroupChat' => [
            'chat_target' => 'require|number',
            'chat_content' => 'require',
        ],
    ];


}